﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	/// <summary>
	/// 用户评价表实体类
	/// </summary>
	public class EvaluateInfo:BaseEntity
	{
		/// <summary>
		///商品ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string GoodsId { get; set; }

		/// <summary>
		///用户ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string UserId { get; set; }

		/// <summary>
		///评价时间
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		///是否匿名评价
		/// </summary>
		public EvaluateStateEnum State { get; set; }
		
		/// <summary>
		///评价内容
		/// </summary>
		[Column(TypeName = "varchar(150)")]
		public string Content { get; set; }

		public enum EvaluateStateEnum 
		{
			匿名 = 1,
			实名 = 0,
		}



	}
}
